projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7964209
)
fsl_dma: fix support for 83xx DMA engine
author
Ira W. Snyder
<
[email protected]
>
Tue, 1 Mar 2011 22:40:55 +0000
(14:40 -0800)
committer
Kim Phillips
<
[email protected]
>
Thu, 7 Jul 2011 00:09:27 +0000
(19:09 -0500)
Commit
359ec4931944adb885882deb9b781e4095eabc94
broke support for the
Freescale DMA engine on the 83xx parts. This is due to using registers
which do not exist on 83xx. Remove the attribute register accesses from
the 83xx build.
Signed-off-by: Ira W. Snyder <
[email protected]
>
Cc: York Sun <
[email protected]
>
Cc: Peter Tyser <
[email protected]
>
Cc: Kumar Gala <
[email protected]
>
Signed-off-by: Kim Phillips <
[email protected]
>
drivers/dma/fsl_dma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/fsl_dma.c
b/drivers/dma/fsl_dma.c
index 09c18c192997d90196b3408f3619b048c3e64808..30785ecf9889d79b809d167c77111fb08032af95 100644
(file)
--- a/
drivers/dma/fsl_dma.c
+++ b/
drivers/dma/fsl_dma.c
@@
-116,10
+116,12
@@
int dmacpy(phys_addr_t dest, phys_addr_t src, phys_size_t count) {
out_dma32(&dma->dar, (u32) (dest & 0xFFFFFFFF));
out_dma32(&dma->sar, (u32) (src & 0xFFFFFFFF));
+#if !defined(CONFIG_MPC83xx)
out_dma32(&dma->satr,
in_dma32(&dma->satr) | (u32)((u64)src >> 32));
out_dma32(&dma->datr,
in_dma32(&dma->datr) | (u32)((u64)dest >> 32));
+#endif
out_dma32(&dma->bcr, xfer_size);
dma_sync();